type: object
properties:
  id:
    description: Unique identifier for the object.
    example: 2
    type: integer
  action:
    description: Action that was performed.
    example: update
    type: string
    enum:
      - create
      - update
      - delete
      - login
  user:
    description: The user who performed this action.
    oneOf:
      - type: string
      - $ref: '../openapi.yaml#/components/schemas/Users'
    nullable: true
  timestamp:
    description: When the action happened.
    example: '2019-12-05T22:52:09Z'
    type: string
    format: date-time
  ip:
    description: The IP address of the user at the time the action took place.
    example: 127.0.0.1
    oneOf:
      - type: string
        format: ipv4
  user_agent:
    description: User agent string of the browser the user used when the action took place.
    example:
      Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/78.0.3904.108
      Safari/537.36
    type: string
  origin:
    description: Origin of the request when the action took place.
    example: https://directus.io
    type: string
  collection:
    description: Collection identifier in which the item resides.
    oneOf:
      - type: string
      - $ref: '../openapi.yaml#/components/schemas/Collections'
  item:
    description:
      Unique identifier for the item the action applied to. This is always a string, even for integer primary keys.
    example: '328'
    type: string
  comment:
    description:
      User comment. This will store the comments that show up in the right sidebar of the item edit page in the admin
      app.
    example: null
    type: string
    nullable: true
